<?php
/**
 * ExtGridView class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtGridView extends ExtGridViewBase
{
    /**
     * Gets the value of ExtJS autoFill property
     * @return Boolean 
     */
    public function getAutoFill()
    {
    	return $this->getConfig("autofill");
    }

    /**
     * Sets the value of ExtJS autoFill property
     * @param Boolean $value 
     */
    public function setAutoFill($value)
    {
    	$this->setConfig("autofill",$value);
    }

    /**
     * Gets the value of ExtJS cellSelector property
     * @return String 
     */
    public function getCellSelector()
    {
    	return $this->getConfig("cellselector");
    }

    /**
     * Sets the value of ExtJS cellSelector property
     * @param String $value 
     */
    public function setCellSelector($value)
    {
    	$this->setConfig("cellselector",$value);
    }

    /**
     * Gets the value of ExtJS cellSelectorDepth property
     * @return Number 
     */
    public function getCellSelectorDepth()
    {
    	return $this->getConfig("cellselectordepth");
    }

    /**
     * Sets the value of ExtJS cellSelectorDepth property
     * @param Number $value 
     */
    public function setCellSelectorDepth($value)
    {
    	$this->setConfig("cellselectordepth",$value);
    }

    /**
     * Gets the value of ExtJS columnsText property
     * @return String 
     */
    public function getColumnsText()
    {
    	return $this->getConfig("columnstext");
    }

    /**
     * Sets the value of ExtJS columnsText property
     * @param String $value 
     */
    public function setColumnsText($value)
    {
    	$this->setConfig("columnstext",$value);
    }

    /**
     * Gets the value of ExtJS deferEmptyText property
     * @return Boolean 
     */
    public function getDeferEmptyText()
    {
    	return $this->getConfig("deferemptytext");
    }

    /**
     * Sets the value of ExtJS deferEmptyText property
     * @param Boolean $value 
     */
    public function setDeferEmptyText($value)
    {
    	$this->setConfig("deferemptytext",$value);
    }

    /**
     * Gets the value of ExtJS emptyText property
     * @return String 
     */
    public function getEmptyText()
    {
    	return $this->getConfig("emptytext");
    }

    /**
     * Sets the value of ExtJS emptyText property
     * @param String $value 
     */
    public function setEmptyText($value)
    {
    	$this->setConfig("emptytext",$value);
    }

    /**
     * Gets the value of ExtJS enableRowBody property
     * @return Boolean 
     */
    public function getEnableRowBody()
    {
    	return $this->getConfig("enablerowbody");
    }

    /**
     * Sets the value of ExtJS enableRowBody property
     * @param Boolean $value 
     */
    public function setEnableRowBody($value)
    {
    	$this->setConfig("enablerowbody",$value);
    }

    /**
     * Gets the value of ExtJS forceFit property
     * @return Boolean 
     */
    public function getForceFit()
    {
    	return $this->getConfig("forcefit");
    }

    /**
     * Sets the value of ExtJS forceFit property
     * @param Boolean $value 
     */
    public function setForceFit($value)
    {
    	$this->setConfig("forcefit",$value);
    }

    /**
     * Gets the value of ExtJS headersDisabled property
     * @return Boolean 
     */
    public function getHeadersDisabled()
    {
    	return $this->getConfig("headersdisabled");
    }

    /**
     * Sets the value of ExtJS headersDisabled property
     * @param Boolean $value 
     */
    public function setHeadersDisabled($value)
    {
    	$this->setConfig("headersdisabled",$value);
    }

    /**
     * Gets the value of ExtJS rowBodySelector property
     * @return String 
     */
    public function getRowBodySelector()
    {
    	return $this->getConfig("rowbodyselector");
    }

    /**
     * Sets the value of ExtJS rowBodySelector property
     * @param String $value 
     */
    public function setRowBodySelector($value)
    {
    	$this->setConfig("rowbodyselector",$value);
    }

    /**
     * Gets the value of ExtJS rowBodySelectorDepth property
     * @return Number 
     */
    public function getRowBodySelectorDepth()
    {
    	return $this->getConfig("rowbodyselectordepth");
    }

    /**
     * Sets the value of ExtJS rowBodySelectorDepth property
     * @param Number $value 
     */
    public function setRowBodySelectorDepth($value)
    {
    	$this->setConfig("rowbodyselectordepth",$value);
    }

    /**
     * Gets the value of ExtJS rowSelector property
     * @return String 
     */
    public function getRowSelector()
    {
    	return $this->getConfig("rowselector");
    }

    /**
     * Sets the value of ExtJS rowSelector property
     * @param String $value 
     */
    public function setRowSelector($value)
    {
    	$this->setConfig("rowselector",$value);
    }

    /**
     * Gets the value of ExtJS rowSelectorDepth property
     * @return Number 
     */
    public function getRowSelectorDepth()
    {
    	return $this->getConfig("rowselectordepth");
    }

    /**
     * Sets the value of ExtJS rowSelectorDepth property
     * @param Number $value 
     */
    public function setRowSelectorDepth($value)
    {
    	$this->setConfig("rowselectordepth",$value);
    }

    /**
     * Gets the value of ExtJS scrollOffset property
     * @return Number 
     */
    public function getScrollOffset()
    {
    	return $this->getConfig("scrolloffset");
    }

    /**
     * Sets the value of ExtJS scrollOffset property
     * @param Number $value 
     */
    public function setScrollOffset($value)
    {
    	$this->setConfig("scrolloffset",$value);
    }

    /**
     * Gets the value of ExtJS selectedRowClass property
     * @return String 
     */
    public function getSelectedRowClass()
    {
    	return $this->getConfig("selectedrowclass");
    }

    /**
     * Sets the value of ExtJS selectedRowClass property
     * @param String $value 
     */
    public function setSelectedRowClass($value)
    {
    	$this->setConfig("selectedrowclass",$value);
    }

    /**
     * Gets the value of ExtJS sortAscText property
     * @return String 
     */
    public function getSortAscText()
    {
    	return $this->getConfig("sortasctext");
    }

    /**
     * Sets the value of ExtJS sortAscText property
     * @param String $value 
     */
    public function setSortAscText($value)
    {
    	$this->setConfig("sortasctext",$value);
    }

    /**
     * Gets the value of ExtJS sortDescText property
     * @return String 
     */
    public function getSortDescText()
    {
    	return $this->getConfig("sortdesctext");
    }

    /**
     * Sets the value of ExtJS sortDescText property
     * @param String $value 
     */
    public function setSortDescText($value)
    {
    	$this->setConfig("sortdesctext",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'autofill' => 'autoFill',
            'cellselector' => 'cellSelector',
            'cellselectordepth' => 'cellSelectorDepth',
            'columnstext' => 'columnsText',
            'deferemptytext' => 'deferEmptyText',
            'emptytext' => 'emptyText',
            'enablerowbody' => 'enableRowBody',
            'forcefit' => 'forceFit',
            'headersdisabled' => 'headersDisabled',
            'rowbodyselector' => 'rowBodySelector',
            'rowbodyselectordepth' => 'rowBodySelectorDepth',
            'rowselector' => 'rowSelector',
            'rowselectordepth' => 'rowSelectorDepth',
            'scrolloffset' => 'scrollOffset',
            'selectedrowclass' => 'selectedRowClass',
            'sortasctext' => 'sortAscText',
            'sortdesctext' => 'sortDescText'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'beforerefresh' => array('view'),
            'beforerowremoved' => array('view','rowIndex','record'),
            'beforerowsinserted' => array('view','firstRow','lastRow'),
            'refresh' => array('view'),
            'rowremoved' => array('view','rowIndex','record'),
            'rowsinserted' => array('view','firstRow','lastRow'),
            'rowupdated' => array('view','firstRow','record')
        ));


        $this->setXType('gridview');
        $this->setXClass('Ext.grid.GridView');
    }    
}
?>